package com.Telphone;

public class Telphone {
	private float screen;
	private float cpu;
	private float memory;
	
	public Telphone() {
		System.out.println("No par");
	}
	public Telphone(float newScreen, float newCpu, float memory) {
		System.out.println("Par");
		screen = newScreen; // why screen = screen doesn't work??
		cpu = newCpu;
		memory = memory;	// why this doesn't work ??
	}
	
	public void setScreen(float newScreen) {
		if (newScreen < 3.5f && newScreen > 6.0f) {
			System.out.println("Unleggal screen size");
		}
		screen = newScreen;
	}
	
	public float getScreen() {
		return screen;
	}

	public float getCpu() {
		return cpu;
	}
	public void setCpu(float cpu) {
		this.cpu = cpu;
	}
	public float getMemory() {
		return memory;
	}
	public void setMemory(float memory) {
		this.memory = memory;
	}
	public void call() {
		System.out.println("call");
		System.out.println(cpu);
		System.out.println(memory);

	}
	public void sendMessage() {
		int screen = 22;
		System.out.println("send message: screen: " + screen);
	}
	
	public static void main(String[] args) {
		Telphone telphone = new Telphone();
		telphone.sendMessage();
		telphone.screen = 5.0f;
		telphone.sendMessage();
		Telphone telphone2 = new Telphone(2f, 4f, 5f);
		telphone2.call();
	}
}
